package com.lynn.common.dialog

import android.content.Context

/**
 * @description: 网络请求全局对话框
 * @author: bailing
 * @datetime: 2025/5/29 11:13
 **/
 class HttpLoadingDialog {

    class Builder(context: Context) : BaseDialog.Builder(context, R.layout.dialog_network_loading) {

        // Override the convertView method to set the width, horizontal gap, cancelable and canceled on touch outside properties of the dialog
        override fun convertView(viewHolder: ViewHolder, dialog: BaseDialog) {
            // Set the dialog to be cancelable
            setCancelable(false)
            // Set the dialog to be canceled on touch outside
            setCanceledOnTouchOutside(false)
        }
    }

}
